home *** CD-ROM | disk | FTP | other *** search
/ Sprite 1984 - 1993 / Sprite 1984 - 1993.iso / src / machserver / 1.098 / include / sun4.md / sys / machSignal.h < prev    next >
C/C++ Source or Header  |  1991-05-20  |  1KB  |  37 lines

  1. /*
  2.  * Copyright (c) 1982, 1986 Regents of the University of California.
  3.  * All rights reserved.  The Berkeley software License Agreement
  4.  * specifies the terms and conditions for redistribution.
  5.  *
  6.  *    @(#)signal.h    7.3 (Berkeley) 5/14/88
  7.  * $Header: /sprite/src/lib/include/RCS/signal.h,v 1.10 90/12/18 18:39:43 kupfer Exp $
  8.  */
  9.  
  10. #ifndef _SYS_SIGNAL
  11. #define _SYS_SIGNAL
  12.  
  13. /*
  14.  * Information pushed on stack when a signal is delivered.
  15.  * This is used by the kernel to restore state following
  16.  * execution of the signal handler.  On some systems it is also made
  17.  * available to the handler to allow it to properly restore state if a
  18.  * non-standard exit is performed.  However, user programs should not
  19.  * rely on having access to this information.
  20.  */
  21. #define SPARC_MAXREGWINDOW 31        /* max # of register windows */
  22. struct    sigcontext {
  23.     int    sc_onstack;        /* sigstack state to restore */
  24.     int    sc_mask;        /* signal mask to restore */
  25.     int    sc_sp;            /* sp to restore */
  26.     int    sc_pc;            /* pc to restore */
  27.     int    sc_npc;            /* npc to restore */
  28.     int    sc_psr;            /* psr to restore */
  29.     int    sc_g1;            /* g1 to restore */
  30.     int    sc_o0;            /* o0 to restore */
  31.     int    sc_wbcnt;        /* outstanding windows */
  32.     char    *sc_spbuf[SPARC_MAXREGWINDOW]; /* sp's in each window */
  33.     int    sc_wbuf[SPARC_MAXREGWINDOW][16]; /* register windows */
  34. };
  35.  
  36. #endif /* _SYS_SIGNAL */
  37.